<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 500px;
            height: 300px;
            border:1px red solid;
            margin: 100px auto;
            text-align: center;
        }

        img{
            /* 设置图片和文字的对齐方式 */
            vertical-align: middle;
        }
    </style>
</head>
<body>
    

    <div>
        <img src="../images/enemy2_fly_1.png" alt="">
        <span>这是一个小飞机</span>
    </div>
</body>
</html>